|
SET OBJECT INTERPOLATION
This command will set the percentage of animation frame interpolation in the specified 3D object.
SET OBJECT INTERPOLATION Object Number, Interpolation
Object Number
Integer
The object number
Interpolation
Integer
If the interpolation percentage is 100, the transition between frames is instant. When the value is set to 50, it would take two cycles to make the transition
This command does not return a value.
Interpolation occurs when the animation frame is manually set using the SET OBJECT FRAME command. If the interpolation percentage is 100, the transition between frames is instant. When the value is set to 50, it would take two cycles to make the transition. You can use interpolation to make extremely smooth movements between two different animation frames. The parameters should be specified using integer values.
sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
append object "models\extraanim.x", ObjectNumber, total object frames(ObjectNumber)+1
set object speed ObjectNumber,5
set object interpolation ObjectNumber,50
loop object ObjectNumber,0,total object frames(ObjectNumber)
while mouseclick()=0
sync
endwhile
while mouseclick()=1:endwhile
stop object ObjectNumber
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index
|